package com.briup.corejava.chap08.annotation;

import java.lang.annotation.*;

@Documented
@Target({ElementType.METHOD,
         ElementType.CONSTRUCTOR,
         ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface MyAnno {
    // 定义一些属性
    int value();
    String[] mode() default {"single","cluster"};
    // 属性的默认值
    String name() default "";
}
